<template>
	<view>
		<mumu-get-qrcode @success='qrcodeSucess' :definition="true" @error="qrcodeError"></mumu-get-qrcode>
		<fukuanmsg :show="messagefk.fkshow" :paystatus="messagefk.paystatus"></fukuanmsg>
	</view>
</template>

<script>
	import mumuGetQrcode from '@/uni_modules/mumu-getQrcode/components/mumu-getQrcode/mumu-getQrcode.vue'
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		components: {
			mumuGetQrcode
		},
		data() {
			return {
				listid:"",
				messagefk:{
					fkshow:false,
					paystatus:1,//1成功，2失败
				}
			};
		},
		onLoad() {
			// setTimeout(()=>{
			// 	uni.$emit("jiazongsacnCode","381048271284860698")
			// 	uni.navigateBack(1)
			// },400)
		},
		methods: {
			qrcodeSucess(data) {
				uni.$emit("jiazongsacnCode",data)
				uni.navigateBack(1)
			},
			qrcodeError(err) {
				uni.showModal({
					title: '監視器授權失敗',
					content: '監視器授權失敗，請檢測當前瀏覽器是否有監視器許可權。',
					success: () => {
						uni.navigateBack({})
					}
				})
			},
		},
	};
</script>

<style></style>